/*
 * px_rendersystem.h
 *
 *  Created on: 2013-1-21
 *  Author:xuwei
 */

#ifndef _PANDAX__RENDERSYSTEM_H__
#define _PANDAX__RENDERSYSTEM_H__
#include <windows.h>
#include "../utility/px_type.h"
typedef struct _PXVIEW
{
    PXSIZE size;
	HWND hwind;
	HDC  hDC;
	HGLRC hRC;
}PXVIEW;

PXBOOL init_GL(PXVIEW * pView);
void   destroy_GL(PXVIEW * pView);
void   center_window(PXVIEW * pView);
void   resize_window(PXVIEW * pView ,int  width, int height);
PXBOOL create_window(PXVIEW * pView ,LPCTSTR pTitle, int w, int h);
PXVIEW * share_PXVIEW();
void   swap_buffer(PXVIEW * pView);
void set_projection(PXVIEW * pView);
#endif // px_rendersystem_h__
